# -*- coding: utf-8 -*-
"""
Created on Fri Sep 22 14:59:50 2023

@author: 楠川之木
"""

x = input('please input a list:')
x = eval(x)
start,end = eval(input('please input the start and the end positions:'))
print(x[start:end+1])